// 导入路由组件
import { BrowserRouter as Router, Route /*, Link */ } from 'react-router-dom'

import './App.css'

// 在 App 组件中配置路由

// 导入页面组件
import Login from './pages/Login'
import Layout from './pages/Layout'
import Ech from './pages/echartss'

const App = () => {
  return (
    <Router>
      <div className='app'>
        {/* 测试路由切换 */}
        {/* <Link to="/login">登录页</Link>
        <Link to="/home">后台首页</Link> */}

        {/* 配置路由 */}
        <Route exact path='/' component={Login}></Route>
        <Route path='/home' component={Layout}></Route>
        <Route path='/ech' component={Ech}></Route>
      </div>
    </Router>
  )
}

export default App
